package net.qqxh.sunflow.server.upms.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Copyright (C), 2019/5/29, sunflow开发团队
 * 〈角色信息表〉<br>
 * 〈功能详细描述〉
 *
 * @author jwy
 * @fileName: RoleInfo.java
 * @date: 2019/5/29 20:18
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@TableName("supms_role_info")
public @Data
class RoleInfo {
    @TableId(type = IdType.INPUT)
    private String roleCode;

    private String roleName;

    private String roleType;

    private String unitCode;

    @TableLogic(value = "T")
    private String isValid;

    private String roleDesc;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    private String creator;

    private String updator;

}